home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
ab20
/
unarced
/
languages
/
c-manual
/
hintsandtips
/
example4.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-17
|
482b
|
24 lines
/* Example 4 */
/* This program tells you if it was run from workbench or */
/* from a CLI window. */
void main();
void main( argc, argv )
int argc;
char *argv[];
{
int loop;
if( argc )
printf( "This program was started from a CLI window!\n" );
else
printf( "This program was started from Workbench!\n" );
/* Wait for a while: */
for( loop = 0; loop < 500000; loop++ )
;
}